Split Time in Seconds for each Hour in a day given start and end time in Redshift